package com.foxmail.aroundme.boring.module.news.main.presenter;


import com.foxmail.aroundme.boring.base.present.BasePreImpl;
import com.foxmail.aroundme.boring.bean.channel.NewsChannelBean;
import com.foxmail.aroundme.boring.bean.newslist.NewsListBean;
import com.foxmail.aroundme.boring.callback.RequestCallback;
import com.foxmail.aroundme.boring.manager.ChannelManager;
import com.foxmail.aroundme.boring.module.news.main.module.INewsInter;
import com.foxmail.aroundme.boring.module.news.main.view.INewsView;
import com.foxmail.aroundme.boring.utils.m_enum.RefreshType;
import com.foxmail.aroundme.boring.utils.m_enum.RequestErrorType;

import java.util.List;

/**
 * Created by gzl on 12/19/16.
 *
 */

public class NewsPreImpl extends BasePreImpl<INewsView, List<NewsListBean>> implements INewsPre, RequestCallback<List<NewsListBean>>{

    private INewsInter iNewsInter;

    public NewsPreImpl(INewsView view) {
        super(view);
    }

    @Override
    public void initChannel() {
        List<NewsChannelBean> channelBeen = null;

        channelBeen = ChannelManager.getInstance().getChannelList();

        if (mView != null) {
            mView.initViewPager(channelBeen);
        }
    }

    @Override
    public void beforeRequest(@RefreshType.Refresh int type) {

    }

    @Override
    public void requestError(String msg, @RequestErrorType.Request int error) {

    }

    @Override
    public void requestComplete() {

    }

    @Override
    public void requestSuccess(List<NewsListBean> data) {

    }

    @Override
    public void requestSuccess(List<NewsListBean> data, String channelId, boolean isCache) {

    }

}
